package com.autumn.scheduler.server;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;

import com.autumn.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.autumn.mybatis.annotation.EnableAutumnMybatis;
import com.autumn.scheduler.annotation.EnableAutumnScheduler;
import com.autumn.spring.boot.annotation.EnableAutoAutumnConfiguration;

/**
 *
 * 调度管理应用
 *
 * @author 杨昌国 2018-03-18 21:30:46
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ComponentScan({ "com.autumn.scheduler" })
@EnableAutumnScheduler
@EnableAutumnMybatis(value = { "com.autumn.scheduler.domain.repositories" }, typeAliasesPackages = {
		"com.autumn.scheduler.domain.entities" })
@EnableAutoAutumnConfiguration
@EnableDubboConfiguration
public class SchedulerServerApplication {

	/**
	 *
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplicationBuilder app = new SpringApplicationBuilder(SchedulerServerApplication.class);
		app.bannerMode(Banner.Mode.CONSOLE).run(args);
	}
}
